package de.baumann.browser.views.dialog

import android.content.Context
import android.widget.Button
import de.baumann.browser.R
import kotlinx.android.synthetic.main.dialog_tip.*

abstract class BaseTipDialog(context: Context) : BaseDialog(context) {
    override fun laoutId(): Int {
        return R.layout.dialog_tip
    }

    override fun initView() {
        tipContent.text = getTipContent()
        btnTip.text = getTipButtonText()
    }

    open fun getTitle(): String {
        return context.getString(R.string.prompt)
    }

    abstract fun getTipContent(): String

    abstract fun getTipSubContent(): String

    abstract fun getTipButtonText(): String

    fun getButton(): Button {
        return btnTip
    }


}